#include <iostream>

using namespace std;
//重载
//函数名相同，参数不同
//精确匹配，整数提升
//标准转换匹配
int fing(int x)
{
    return x;
}

int fing(int x,int y)
{
    return x<y?x:y;
}
int fing(char *p)
{
    return 0;
}

void print(int x)
{
    cout<<"int"<<x<<endl;
}
void print(const char* x)
{
    cout<<"const char*"<<x<<endl;
}
void print(long x)
{
    cout<<"long"<<x<<endl;
}
void print(double x)
{
    cout<<"double"<<x<<endl;
}
int main()
{

    //cout << "Hello World!" << endl;
    cout<<fing(3.1)<<endl;
    cout<<fing(1,2)<<endl;
    cout<<fing("hello world")<<endl;

    print('a');
    print(49);
    print(3.14);
    print(0);


    return 0;
}
